package com.sprinboot_vue.blog_springboot.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Thomas
 * @version 1.0
 * @date 2021/11/20 21:55
 */
@Entity
@Data
@Table(name = "type")
//类型表
public class Type {
    @Id
    //类型的haskcode值，这样的设计有一点问题！！
    private long id;
    private String type;
    private int type_number;
}
